﻿<frame:CFrame x:Class="VAdvantage.Apps.AddKPI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Title="Add KPI"
    d:DesignHeight="300" d:DesignWidth="400"
                           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:frame="clr-namespace:VAdvantage.Apps"
                 xmlns:provider="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:VAdvantage.Controls" Height="248" Width="534">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="139" />
            <ColumnDefinition Width="202*" />
            <ColumnDefinition Width="26" />
            <ColumnDefinition Width="214*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="13" />
            <RowDefinition Height="32" />
            <RowDefinition Height="32" />
            <RowDefinition Height="32" />
            <RowDefinition Height="32" />
            <RowDefinition Height="72*" />
        </Grid.RowDefinitions>
        <sdk:Label Grid.Row="2" Height="17" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lblKPI" VerticalAlignment="Top" Width="122" Content="KPI" />
        <ComboBox Grid.Column="1" Grid.Row="2" Height="23" Margin="1,4,0,0" Name="cmbKPI" VerticalAlignment="Top" SelectionChanged="cmbKPIPanel_SelectionChanged" />
        <ComboBox Grid.Column="1" Grid.Row="1" Height="23" Margin="1,4,0,0" Name="cmbKPIPanel" VerticalAlignment="Top"  />
        <sdk:Label Grid.Row="1" Height="15" HorizontalAlignment="Left" Margin="6,8,0,0" Name="lblKPIPanel" VerticalAlignment="Top" Width="75" Content="KPI Panel" />
        <sdk:Label Grid.Row="3" Height="15" HorizontalAlignment="Left" Margin="5,7,0,0" Name="lblName" VerticalAlignment="Top" Width="122" Content="Name" />
        <TextBox Grid.Column="1" Grid.Row="3" Height="23" Margin="1,5,0,0" Name="txtName" VerticalAlignment="Top" />
        <my:VNumTextBox Grid.Column="1" Grid.Row="4" Height="23" Margin="1,4,0,0" x:Name="txtSeq" VerticalAlignment="Top" ></my:VNumTextBox>
        <sdk:Label Grid.Row="4" Height="21" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lblFontColor" VerticalAlignment="Top" Width="120" Content="Seq No" />
        <ListBox Grid.Column="3" Grid.Row="1" Grid.RowSpan="3" Height="96" Name="lstAddedKPI" VerticalAlignment="Top" SelectionChanged="lstAddedKPI_SelectionChanged" Margin="0,0,12,0" />

        <my:VButton Grid.Row="5" Grid.Column="3" Margin="0,27,12,0" Height="35" x:Name="btnOk" Width="35" Click="btnOK_Click" VerticalAlignment="Top" HorizontalAlignment="Right">
            <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill"></Image>
        </my:VButton>
        <my:VButton  Grid.Row="5" Grid.Column="3" Margin="0,27,53,0" Height="35" x:Name="btnCancel" Width="35" Click="btnCancel_Click" VerticalAlignment="Top" HorizontalAlignment="Right">
            <Image Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"></Image>
        </my:VButton>
        <Button Grid.Column="3" Grid.Row="4" Height="21" HorizontalAlignment="Right" Margin="0,9,14,0" Name="btnRemoveKPI" Click="btnRemoveKPI_Click" VerticalAlignment="Top" Width="46">
            <Image x:Name="RemoveItem" Source="/VAdvantage;component/Images/RemoveItem.png"></Image>
        </Button>
        <Button Grid.Column="3" Grid.Row="4" Height="21" HorizontalAlignment="Right" Name="btnAddNew" Click="btnAddNew_Click"  VerticalAlignment="Top" Width="46" Margin="0,9,62,0">
            <Image x:Name="AddNew" Source="/VAdvantage;component/Images/AddNew.png"></Image>
        </Button>
        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Visible" Grid.ColumnSpan="5" Grid.RowSpan="6">
            <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
        </Grid>
    </Grid>
</frame:CFrame>
